import App from './App'
import uView from "@/uni_modules/uview-ui";
Vue.use(uView);
import api from './utils/reqest.js'
Vue.prototype.api = api
import slideCode from '@/common/son.vue';
Vue.component('slideCode',slideCode);
// #ifdef H5
//导入 //（一定要用条件编译，否则在打包APP或在手机基座运行时会报 ‘jweixin’ of undefined,造成手机白屏）
import wxApi from './common/wxApi.js'
//挂载
Vue.prototype.$wxPay = wxApi.wexinPay
// #endif

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif